package com.sg.business.model;

import com.mobnut.db.model.PrimaryObject;

public class SearchSetting extends PrimaryObject {

	public static final String SEARCH_TYPE_TEXT = "text";

	public static final String SEARCH_TYPE_NUMBER = "number";
	
	public static final String SEARCH_TYPE_DATE = "date";
	
	public static final String SEARCH_TYPE_BOOLEAN = "boolean";

	public static final String F_DISPLAY_NAME = "displayname";

	public static final String F_FIELD_TYPE = "type";

	public static final String F_ENABLE = "enable";

	
	public String getFieldName(){
		return getStringValue(F_DESC);
	}
	
	public String getDisplayName(){
		return getStringValue(F_DISPLAY_NAME);
	}
	
	public String getType(){
		return getStringValue(F_FIELD_TYPE);
	}
	
	public boolean isEnable(){
		return Boolean.TRUE.equals(getValue(F_ENABLE));
	}
	
}
